package API_learning;

import java.util.Scanner;

public class code1 {
    public static void main(String[] args) {
        //1，创建对象
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个小数：");
        //2，接收一个小数
        double result = sc.nextDouble();
        System.out.println(result);
    }
}
